<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>更新网点</title>
<script type="text/javascript">
	/**查找带回机构信息*/
	function lookUpExpressCompany() {
		$.pdialog.open('expressCompanyLookUp', 'organization', '公司信息', {
			width : 800,
			height : 400,
			mask : true
		});
	}

	/**
	 * 选择省市区，触发变化，表单参数值传入隐藏域
	 */
	function areaOnChange(obj, str) {
		var $obj = $(obj);
		var text = $obj.find("option:selected").text();
		$("#" + str).val(text);
	}
</script>
</head>
<body>
	<div class="pageContent">
		<form class="pageForm required-validate" method="post" action="updateNetsiteAction.action" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<input type="hidden" name="rightId" value="${rightId}" /> <input name="id" value="<s:property value='#request.netsite.id' />" type="hidden" />
			<div class="pageFormContent" layoutH="56">
				<table>
					<tr>
						<td>网点名称：</td>
						<td><input name="name" value="<s:property value='#request.netsite.name'/>" type="text" size="30" class="required textInput valid" /></td>
					</tr>

					<!--查找带回 -->
					<tr>
						<td>所属公司：</td>
						<td><input type="text" value="<s:property value='#request.netsite.expressCompanyName'/>" class="required"  bringBackName="expressCompanyName" name="expressCompanyName" readonly="readonly" size="30" class="required textInput valid" /> <input type="hidden" name="expressCompanyId" bringBackName="expressCompanyId"/> <a class="btnLook" href="javascript:void(0);" onclick="lookUpExpressCompany()">查找带回</a></td>
					</tr>
					<%-- <tr>
						<td>唯一编码：</td>
						<td><input name="code" value="<s:property value='#request.netsite.code'/>" type="text" size="30" class="required textInput valid" /></td>
					</tr> --%>
					<tr>
						<td>联系电话：</td>
						<td><input name="telephone" value="<s:property value='#request.netsite.telephone'/>" type="text" size="30" class="required textInput valid" /></td>
					</tr>
					<tr>
						<td>手机号码：</td>
						<td><input name="mobile" value="<s:property value='#request.netsite.mobile'/>" type="text" size="30" class="required textInput valid" /></td>
					</tr>
					<tr>
						<td>省市区：</td>
						<td><select onChange="areaOnChange(this,'provinceName')" class="combox" name="provinceId" ref="combox_city" refUrl="getAreasNolimitAction.action?parentId={value}">
								<option value="<s:property value='#request.netsite.proviceId'/>"><s:property value='#request.netsite.provinceName' /></option>
								<c:forEach items="${areaList}" var="li">
									<option value="${li.id}">${li.name}</option>
								</c:forEach>
						</select> <select onChange="areaOnChange(this,'cityName')" class="combox" name="cityId" id="combox_city" ref="combox_area" refUrl="getAreasNolimitAction.action?parentId={value}">
								<option value="<s:property value='#request.netsite.cityId'/>"><s:property value='#request.netsite.cityName' /></option>
						</select> <select onChange="areaOnChange(this,'districtName')" class="combox" name="districtId" id="combox_area">
								<option value="<s:property value='#request.netsite.districtId'/>"><s:property value='#request.netsite.districtName' /></option>
						</select></td>
					</tr>
					<tr>
						<td>详细地址：</td>
						<td><input name="address" value="<s:property value='#request.netsite.address'/>" type="text" size="30" class="required textInput valid" /></td>
					</tr>
					<tr>
						<td>网点状态：</td>
						<td><s:if test="#request.netsite.enabled==0">
								<select class="" name="enabled" style="width: 193px">
									<option value="1">可用</option>
									<option value="0" selected="selected">禁用</option>
								</select>
							</s:if> <s:elseif test="#request.netsite.enabled==1">
								<select class="" name="enabled" style="width: 181px">
									<option value="1" selected="selected">可用</option>
									<option value="0">禁用</option>
								</select>
							</s:elseif></td>
					</tr>
					<tr>
						<td>开始取件时间：</td>
						<td><s:if test="#request.netsite.startTime=='8时'">
								<select name="startTime" style="width: 193px">
									<option value="8时" selected="selected">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:if> <s:elseif test="#request.netsite.startTime=='9时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时" selected="selected">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='10时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时" selected="selected">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='11时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时" selected="selected">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='12时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时" selected="selected">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='13时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时" selected="selected">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='14时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时" selected="selected">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='15时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时" selected="selected">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='16时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时" selected="selected">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='17时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时" selected="selected">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='18时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时" selected="selected">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='19时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时" selected="selected">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.startTime=='20时'">
								<select name="startTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时" selected="selected">20时</option>
								</select>
							</s:elseif></td>
					</tr>
					<tr>
						<td>结束取件时间：</td>
						<td><s:if test="#request.netsite.endTime=='8时'">
								<select name="endTime" style="width: 193px">
									<option value="8时" selected="selected">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:if> <s:elseif test="#request.netsite.endTime=='9时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时" selected="selected">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='10时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时" selected="selected">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='11时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时" selected="selected">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='12时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时" selected="selected">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='13时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时" selected="selected">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='14时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时" selected="selected">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='15时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时" selected="selected">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='16时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时" selected="selected">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='17时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时" selected="selected">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='18时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时" selected="selected">18时</option>
									<option value="19时">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='19时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时" selected="selected">19时</option>
									<option value="20时">20时</option>
								</select>
							</s:elseif> <s:elseif test="#request.netsite.endTime=='20时'">
								<select name="endTime" style="width: 193px">
									<option value="8时">8时</option>
									<option value="9时">9时</option>
									<option value="10时">10时</option>
									<option value="11时">11时</option>
									<option value="12时">12时</option>
									<option value="13时">13时</option>
									<option value="14时">14时</option>
									<option value="15时">15时</option>
									<option value="16时">16时</option>
									<option value="17时">17时</option>
									<option value="18时">18时</option>
									<option value="19时">19时</option>
									<option value="20时" selected="selected">20时</option>
								</select>
							</s:elseif></td>
					</tr>
					<tr>
						<td>负责人姓名：</td>
						<td><input name="principal" value="<s:property value='#request.netsite.principal'/>" type="text" size="30" class="required textInput valid" /></td>
					</tr>
					<tr>
						<td>登录账户：</td>
						<td><input name="principalAccount" value="<s:property value='#request.netsite.principalAccount'/>" type="text" size="30" class="required textInput valid" /></td>
					</tr>
					<tr>
						<td>登录密码：</td>
						<td><input name="principalPwd" type="password" size="30" /></td>
					</tr>
				</table>
				<!--传参 -->
				<div>
					<input id="provinceName" value="<s:property value='#request.netsite.provinceName'/>" type="hidden" name="provinceName"> 
					<input id="cityName" value="<s:property value='#request.netsite.cityName'/>" type="hidden" name="cityName"> 
					<input id="districtName" value="<s:property value='#request.netsite.districtName'/>" type="hidden" name="districtName">
				</div>
			</div>
			<div class="formBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">保存</button>
							</div>
						</div>
					</li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="button" class="close">取消</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</body>
</html>
